export {};

abstract class Animal {
  eat(food: string) {
    console.log("吃" + food);
  }

  abstract run(distance: string): void;
}

class Dog extends Animal {
  constructor() {
    super();
  }

  run(distance: string): void {
    console.log(distance);
  }
}

const dog = new Dog();
